/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Framework;

import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
import javax.microedition.rms.RecordStoreException;

/**
 * @author Wanboo.UIT
 */
public class CGame extends MIDlet 
{
    public Display display;
    public CScreenManager screenManager;
    
    public CGame()
    {
        display = Display.getDisplay(this);
        screenManager = new CScreenManager(this);
    }
    
    public void startApp() 
    {
        //Load info default frome RMS if have
        //StoreRMS.LoadDefault("BubbleBoom");
        display.setCurrent(this.screenManager.getCanvas());
        screenManager.start();
    }
    
    public void pauseApp() 
    {
    }
    
    public void destroyApp(boolean unconditional) 
    {
        this.notifyDestroyed();
    }
}
